package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.SysUser;
import com.example.demo.entity.ThreadInput;
import com.example.demo.entity.ThreadInput2;
import com.example.demo.repository.ThreadInput2Repository;

@Service
public class ThreadInput2Service extends BaseService<ThreadInput2, Integer>{
	@Autowired
	ThreadInput2Repository threadDao;
	

	public List<ThreadInput2> findByThread(ThreadInput sale1) {
		
		return threadDao.findByThread(sale1);
	}


	public List<ThreadInput2> findByPhone(String phone) {
		// TODO Auto-generated method stub
		return threadDao.findByPhone(phone);
	}


	public List<ThreadInput2> findByPhoneAndThreadUserId(String phone, SysUser user) {
		// TODO Auto-generated method stub
		return threadDao.findByPhoneAndThreadUserId(phone,user);
	}


	public ThreadInput2 findByThread2(Integer id) {
		// TODO Auto-generated method stub
		return threadDao.findByThread2(id);
	}

	
}
